<script setup lang="ts">
import { ref, provide } from "vue";
import ChatContent from "./component/ChatContent.vue";
import ChatInput from "./component/ChatInput.vue";
const chatRef = ref();
provide("submitEmitHandler", submitEmitHandler);
async function submitEmitHandler(params: string) {
  await chatRef.value.answerHandler(params);
}
</script>
<template>
  <div class="container">
    <div class="chat-box">
      <ChatContent ref="chatRef"></ChatContent>
    </div>
  </div>
</template>
<style lang="less"></style>
